export default {
    namespaced: true,
    //数据源
    state: {
        Object: ['数学', '语文', '前端']
    },
    getters: {
        changeObject(state, val) {
            return state.Object = 'vue框架'
        }
    },
    mutations: {
        change(state, val) {
            state.Object[0] = 'math'
        },
        changechina(state, val) {
            state.Object[1] = val
        }
    },
    actions: {
        changechinese(context, val) {
            setTimeout(function () {
                context.commit('changechina', val)
            }, 100)
        }
    },
    modules: {}
}